import request from '@/config/axios'
/**
 * 分页查询不动产权证
 */
export const pageQuery = (params) => {
  return request.get({ url: '/files/real-estate/page-query', params })
}

/**
 * 新增不动产权证
 */
export const create = (data) => {
  return request.post({ url: '/files/real-estate/create', data })
}

/**
 * 更新不动产权证
 */
export const update = (data) => {
  return request.put({ url: '/files/real-estate/update', data })
}

/**
 * 获取单个不动产权证
 */
export const singleGet = (id) => {
  return request.get({ url: '/files/real-estate/single-get?id=' + id })
}
